<? if (is_array($this->messages)): ?>
<? foreach ($this->messages as $key => $messages): ?>

    <? foreach ($messages as $message): ?>
        <div class="notification <?= $key ?> png_bg">
            <a href="#" class="close">
                <img src="admin/images/icons/cross_grey_small.png" title="Close this notification"
                                           alt="close"/></a>

            <div>
                <?= $message ?>
            </div>
        </div>
        <? endforeach; ?>
    <? endforeach; ?>
<? endif; ?>